home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / gle / util / surf / gsurface.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-29  |  1.6 KB  |  65 lines

  1. typedef char MARKER[12];
  2. typedef char COLOR[12];
  3. typedef char LSTYLE[12];
  4. struct axis_struct {
  5.     int type;    /* 0=xaxis,yaxis, 1=zaxis. */
  6.     float min, max, step, hei, dist, ticklen;
  7.     int minset,maxset;
  8.     COLOR color;
  9.     int on;
  10.     char *title;
  11.     COLOR title_color;
  12.     float title_hei,title_dist;
  13.     int nofirst,nolast;
  14. };
  15. struct surface_struct {
  16.     float sizez, sizex, sizey, title_hei, title_dist;
  17.     float screenx, screeny;
  18.     char *title;
  19.     COLOR title_color;
  20.     int maxh;    /* dimension for height array, about 1000 is good */
  21.     int npnts;        /* data points for markers, droplines etc */
  22.     float *pntxyz;
  23.  
  24.     struct axis_struct xaxis;    /* The axes */
  25.     struct axis_struct yaxis;
  26.     struct axis_struct zaxis;
  27.  
  28.     int back_hidden,right_hidden,base_hidden;
  29.     COLOR back_lstyle,back_color;        /* grids on back,base,right */
  30.     float back_ystep,back_zstep;
  31.     COLOR base_color,base_lstyle;
  32.     float base_xstep,base_ystep;
  33.     COLOR right_color,right_lstyle;
  34.     float right_xstep,right_zstep;
  35.  
  36.     int cube_hidden_on;        /* Cube hidden lines not removed */
  37.     int cube_on,cube_front_on;
  38.     COLOR cube_color;
  39.     LSTYLE cube_lstyle;
  40.     
  41.     float eye_x, eye_y, vdist;
  42.     float xrotate, yrotate, zrotate;
  43.     int skirt_on;
  44.     int xlines_on,ylines_on;
  45.     int hidden_on,top_on,bot_on;
  46.     COLOR top_color,bot_color;
  47.     LSTYLE top_lstyle,bot_lstyle;    
  48.     
  49.     int droplines,droplines_hidden;
  50.     LSTYLE droplines_lstyle;
  51.     COLOR droplines_color;
  52.     int riselines,riselines_hidden;
  53.     LSTYLE riselines_lstyle;
  54.     COLOR riselines_color;
  55.  
  56.     MARKER marker;
  57.     COLOR marker_color;
  58.     float marker_hei;
  59.  
  60.     int ctop_hidden;        /* Contouring */
  61.     float ctop_from,ctop_to,ctop_step;
  62.     int cbase_hidden;
  63.     float cbase_from,cbase_to,cbase_step;
  64. } ;
  65.